package cn.tristenstudy.blog.mapper;

import cn.tristenstudy.blog.pojo.User;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

/**
 * @author xichen1.li
 * @date 2020-12-23 20:32
 */
@Repository
@Mapper
public interface UserMapper extends BaseMapper<User> {

    /**
     * 通过用户名查询用户
     *
     * @param username 用户名
     * @return 用户
     */
    User queryUserByName(String username);
}
